﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewRen.Models
{
    /// <summary>
    /// 回复
    /// </summary>
    public class Reply
    {
        public int ID { get; set; }

        [ForeignKey("Topic")]
        public int TopicID { get; set; }

        public virtual Topic Topic { get; set; }

        public string Content { get; set; }

        public DateTime Time { get; set; }


        [ForeignKey("User")]
        public int UserID { get; set; }

        public virtual User User { get; set; }


        /// <summary>
        /// 父评论 
        /// </summary>
        public int? FatherID { get; set; }
    }
}
